
public class Cell {

	private int _life;
	private int _neighbor;
	private boolean _alive;
	
	public Cell()
	{
		set_alive(false);
		set_life(0);
		set_neighbor(0);
	}
	
	public int get_life() {
		return _life;
	}

	public void set_life(int _life) {
		if(_life < 0)
			_life = 0;
		this._life = _life;
	}

	public int get_neighbor() {
		return _neighbor;
	}

	public void set_neighbor(int _neighbor) {
		this._neighbor = _neighbor;
	}

	public boolean is_alive() {
		return _alive;
	}

	public void set_alive(boolean _alive) {
		this._alive = _alive;
	}

}
